class Person {
    #createdTime: Date

    public constructor() {
        this.#createdTime = new Date()
    }

    public set createdTime(createdTime: Date) {
        this.#createdTime = createdTime
    }

    public get createdTime() {
        return this.#createdTime
    }

    public create() {
        if (this.#createdTime !== undefined) {
            throw new Error("Initialized")
        }
        this.#createdTime = new Date()
    }
}
